import handler.server.SwordAllMsgEventHandler;
import handler.server.SwordServerHandler;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
import server.SwordServe;

public class SwordServerApplication {
	public static void main(String[] args) {
		SwordServe.run(8888, pipeline -> {
			pipeline.addLast(new StringDecoder());
			pipeline.addLast(new StringEncoder());
			pipeline.addLast(new SwordServerHandler());
			pipeline.addLast(new SwordAllMsgEventHandler());
		});
	}
}
